package com.hgh.javase5_1;

import java.util.Date;

public class EmployeeTest {

	public static void main(String[] args) {
	Employee heguanhong = new Employee(new Date(), 1, 10000.00);
	Class<?> clazz = heguanhong.getClass();
	System.out.println(clazz.getName()+" "+heguanhong.toString());
		
	}
	
	private static void raiseSalary(Employee employee){
		employee.setSalary(employee.getSalary()*2);
	}
	
	private static void swap (Employee a,Employee b){
		System.out.println("swap"+a.toString());
		System.out.println("swap:"+b.toString());
		Employee x = a;
		a = b;
		b = x;
		System.out.println("swap"+a.toString());
		System.out.println("swap:"+b.toString());
	}
}
